home *** CD-ROM | disk | FTP | other *** search
/ Network Support Library / RoseWare - Network Support Library.iso / manage / netdrv.arc / NET.BAT next >
DOS Batch File  |  1989-03-28  |  1KB  |  44 lines

  1. echo off
  2. REM NET.BAT
  3. REM This batch file assists in the login process for Novell Netware
  4.  
  5. REM check to see if user needs help
  6. if {%1}=={help} goto help
  7. if {%1}=={HELP} goto help
  8.  
  9. :netdrive
  10. REM  netdrive leaves user at LOGIN drive
  11. REM  netdrive  returns  errorlevel:   0 if successful
  12. REM                                   1 if Novell shell not loaded
  13. REM                                   2 if other error locating drive
  14. c:\net\netdrive
  15. if errorlevel = 1 goto load_shell
  16. if errorlevel = 2 goto error_stop
  17. if errorlevel = 0 goto start_login
  18.  
  19. REM load the Novell shell
  20. :load_shell
  21. c:\net\ipx
  22. c:\net\net3
  23. c:\net\netdrive
  24.  
  25. :start_login
  26.  
  27. REM one last check for success
  28. cd \login
  29. if not exist login.* goto error_stop
  30.  
  31. echo Logging in to file server 
  32. login FS1/%1 %2 %3 %4 %5
  33. goto exit
  34.  
  35. :error_stop
  36. echo Sorry, unable to locate a network drive.
  37. echo Try re-booting your machine.
  38.  
  39. :help
  40. echo Type: NET   {login name}  to login to file server
  41. echo       NET HELP for this message
  42.  
  43. :exit
  44.